package com.tabjin.rfidsocket.authority.shiro.service.impl;

import com.tabjin.rfidsocket.authority.shiro.mapper.ShrioUserMapper;
import com.tabjin.rfidsocket.authority.shiro.model.vo.UserVO;
import com.tabjin.rfidsocket.authority.shiro.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author tabjin
 * create at 2020/12/15 15:45
 * @program rfid_socket
 * @description
 */
@Service
public class UserServiceImpl implements UserService {

    private final ShrioUserMapper shrioUserMapper;

    public UserServiceImpl(ShrioUserMapper shrioUserMapper) {
        this.shrioUserMapper = shrioUserMapper;
    }

    @Override
    public UserVO findByUsername(String username) {
        return shrioUserMapper.findByUsername(username);
    }
}
